<!doctype html>
<html lang="zh">

<head>
    <meta charset="utf-8" />
    <title>天天外链后台入口</title>
    <meta name="description" content="点击前往创建推广链接，天天外链提供落地页一键跳转小程序、公众号、企业微信、个人微信、视频号等。"/>
    <meta name="viewport" id="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, viewport-fit=cover">
    <link href="https://file.wailian1.cn/admin/login/css/bootstrap.min.css" id="bootstrap-style" rel="stylesheet" type="text/css" />
    <link href="https://file.wailian1.cn/admin/login/css/login.min.css?v=2022121502" id="app-style" rel="stylesheet" type="text/css" />
    <link href="https://file.wailian1.cn/admin/login/css/font/iconfont.css?v=2" id="app-style" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        var ua = navigator.userAgent.toLowerCase();
        if (ua.indexOf('trident') !== -1) {
            alert('当前浏览器无法访问本网址，建议使用火狐、谷歌浏览器，性能较好，使用360浏览器和QQ浏览器的用户请使用极速模式，不要使用兼容模式');
        }
    </script>
    <script src="https://file.wailian1.cn/admin/login/js/jquery.min.js"></script>
    <script src="https://file.wailian1.cn/admin/login/js/bootstrap.min.js"></script>
    <script src="https://file.wailian1.cn/admin/login/js/login.min.js?v=2023073119"></script>
    <script src="https://file.wailian1.cn/admin/login/js/md5.js"></script>
</head>

<body>
    <img src="https://res.wailian1.cn/miniapp/links/20231013/3f6ac199e6d1b88dfc94866908e3ea2f.jpg" style="display: none;"/>
    <div id="login_cotainer" class="{{ ($siteConfig['login_style'] == 'mp' || $siteConfig['login_style'] == 'mpp') ? 'login-cotainer' : 'login-cotainer-small' }}">
        <div class="login-cotainer-content">
            @if($siteConfig['login_style'] == "mp" || $siteConfig['login_style'] == "mpp")
            <div class="login-cotainer-left">
                <div class="title" id="wechat_title"><i class="iconfont icon-saoyisaox"></i>微信扫码安全登录</div>
                <div class="describe" id="wechat_describe">打开微信扫一扫，快速登录/注册</div>
                <div class="wechat-bind" id="wechat_bind">
                    <div class="title"><i class="iconfont icon-chenggong"></i>关注微信公众号</div>
                    <div class="tips">首次使用请微信扫码绑定公众号，方便后续接收产品最新动态以及服务通知！</div>
                </div>
                <div class="qrcode">
                    <div class="qrcode-img"></div>
                    <div class="qrcode-notice" id="qrcode_notice" onclick="getOffiaccountQrcode();">
                        <i class="iconfont icon-shuaxin-"></i>
                        <p>刷新二维码</p>
                    </div>
                </div>
                <div class="notice" id="qrcode_describe"></div>
            </div>
            @endif
            <div class="login-cotainer-right">
                <div class="login-type">
                    <ul>
                        <li id="type_phone" class="active">验证码登录</li>
                        <li id="type_password">密码登录</li>
                        <input type="hidden" value="phone" name="login_type" id="login_type">
                    </ul>
                </div>
                <div class="phone-bind" id="phone_bind">
                    <div class="title"><i class="iconfont icon-chenggong"></i>登录成功</div>
                    <div class="tips">根据国家法律法规要求，绑定手机号获得更高级的安全保护。同时，您可以直接使用手机号进行登录，方便快捷。 </div>
                </div>
                <div id="login_from_phone">
                    <div class="from-lists">
                        <div class="from-lists-item">
                            <label>中国+86</label>
                            <input class="input" type="text" name="phone" id="phone" maxlength="11" value="{{ old('phone') }}" placeholder="请输入手机号码" onchange="inputChange('phone')" oninput="value=value.replace(/[^\d]/g,'')">
                        </div>
                        <div class="from-lists-notice" id="notice_phone"></div>
                    </div>
                    <div class="from-lists" id="captcha_row" style="display: none;">
                        <div class="from-lists-item">
                            <input class="input" type="text" name="captcha" id="captcha" maxlength="4" value="{{ old('captcha') }}" placeholder="图形验证码" onchange="inputChange('captcha')" oninput="value=value.replace(/[^\d]/g,'')">
                            <input type="hidden" id="need_captcha" value="1">
                            <img id="captchaImg" title="点击刷新" src="" onclick="captchaChange();" />
                            <span onclick="captchaChange();">换一张</span>
                        </div>
                        <div class="from-lists-notice" id="notice_captcha"></div>
                    </div>
                    <div class="from-lists">
                        <div class="from-lists-item">
                            <input class="input" type="text" name="msncode" id="msncode" maxlength="4" value="{{ old('msncode') }}" placeholder="请输入短信验证码" onchange="inputChange('msncode')" oninput="value=value.replace(/[^\d]/g,'')">
                            <span id="shortCode" onclick="getShortMessageCode();">获取短信验证码</span>
                        </div>
                        <div class="from-lists-notice text-success" id="notice_msncode"></div>
                    </div>
                </div>
                <div id="login_from_username" style="display:none;">
                    <div class="from-lists">
                        <div class="from-lists-item">
                            <input class="input" type="text" name="username" id="username" maxlength="11" value="{{ old('username') }}" placeholder="请输入登录账号/手机号" onchange="inputChange('username')" oninput="value=value.replace(/[^\d]/g,'')">
                        </div>
                        <div class="from-lists-notice" id="notice_username"></div>
                    </div>
                    <div class="from-lists">
                        <div class="from-lists-item">
                            <input class="input" type="password" name="password" id="password" maxlength="35" value="{{ old('password') }}" placeholder="请输入登录密码" onchange="inputChange('password')" oninput="value=value.replace(/[\u4e00-\u9fa5]/ig,'')">
                            <i id="password_hanndle" class="iconfont icon-xianshikejian" onclick="showPassword();"></i>
                        </div>
                        <div class="from-lists-notice" id="notice_password"></div>
                    </div>
                </div>
                <div class="from-lists-check">
                    <input type="checkbox" name="agreement" id="agreement" onchange="inputChange('agreement');" checked>
                    <label for="agreement">我已阅读并同意<a href="/admin/policy/service" target="_blank">用户服务协议</a>、<a href="/admin/policy/privacy" target="_blank">隐私政策</a>
                </div>
                <div class="button" id="loginbtn" onclick="submitFrom();">登录/注册</div>
                <div class="login-error-notice"></div>
            </div>
        </div>
        <div class="login-cotainer-footer">
            注册/登录视为您已同意遵守<a href="/admin/policy/service" target="_blank">用户服务协议</a>、<a href="/admin/policy/privacy" target="_blank">隐私政策</a>
        </div>
        <div class="login-cotainer-service">
            <a href="{{ $siteConfig['site_domain'] }}" target="_blank">{{ $siteConfig['site_name'] }}官网</a>
            <a href="javascript:;" onclick="showServiceQrcode();">联系微信客服</a>
        </div>
    </div>

    <input type="hidden" id="platfrom" value="{{ $siteConfig['site_code'] }}">
    <input type="hidden" id="login_style" value="{{ $siteConfig['login_style'] }}">
    <input type="hidden" id="register_style" value="{{ $siteConfig['login_auth'] }}">
    <input type="hidden" id="previous" value="{{ $previous }}">
    <input type="hidden" id="return_url" value="{{ $return_url }}">
    <input type="hidden" id="ms_time" value="{{ $time }}">
    <input type="hidden" id="ms_sign" value="{{ $sign }}">
    <input type="hidden" id="unionid" value="{{ !empty(session('unionid')) ? session('unionid') : '' }}">
    <input type="hidden" id="checked_phone" value="">
    @csrf

    <div class="modal fade" id="serviceModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-self-dialog">
            <div class="modal-content modal-self-cotain">
                <div class="modal-self-body">
                    <img src="{{ $siteConfig['service_qrcode'] }}">
                    <p>{{ $siteConfig['service_text'] }}</p>
                    <p class="time">{{ $siteConfig['service_time'] }}</p>
                    <p class="describe">{{ $siteConfig['service_describe'] }}</p>
                </div>
            </div>
            <div class="modal-self-close" style="width: 100%;text-align: center;">
                <i class="iconfont icon-guanbi" style="color: #ffffff;font-size: 25px" onclick="showServiceQrcode();"></i>
            </div>
        </div>
    </div>
</body>
</html>
